<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>标准数据 - 新增</title>
		<link charset="utf-8" rel="stylesheet" href="__PUBLIC__/static/asset/bootstrap/3.3.6/css/bootstrap.min.css">
	</head>
	<body>
		<form action="{:url('manage/standard/add')}" method="post" id="form-data" onsubmit="return check()">
		<table class="table table-bordered">
			<tr>
				<td>单字母</td>
				<td>
					<input type="text" name="single" id="single">
				</td>
				<td>多字母</td>
				<td>
					<input type="text" name="full" id="full">
				</td>
                <td>中文名称</td>
				<td>
					<input type="text" name="name">
				</td>
			</tr>
			<tr>
				<td>残基</td>
				<td>
					<input type="text" name="residue">
				</td>
                <td>残基分子量</td>
				<td>
					<input type="text" name="residue_weight">
				</td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td>C</td>
				<td>
					<input type="text" name="c">
				</td>
				<td>H</td>
				<td>
					<input type="text" name="h">
				</td>
				<td>N</td>
				<td>
					<input type="text" name="n">
				</td>
			</tr>
			<tr>
				<td>O</td>
				<td>
					<input type="text" name="o">
				</td>
				<td>S</td>
				<td>
					<input type="text" name="s">
				</td>
				<td>P</td>
				<td>
					<input type="text" name="p">
				</td>
			</tr>
			<tr>
				<td>Cl</td>
				<td>
					<input type="text" name="cl">
				</td>
				<td>Se</td>
				<td>
					<input type="text" name="se">
				</td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td>亲水性</td>
				<td>
					<input type="text" name="hydrophily">
				</td>
				<td>纯化度</td>
				<td>
					<input type="text" name="purify">
				</td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td>酸个数</td>
				<td>
					<input type="text" name="acid">
				</td>
				<td>碱个数</td>
				<td>
					<input type="text" name="base">
				</td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td>类型</td>
				<td>
					<select name="flag" id="flag">
						<option value="1">普通氨基酸</option>
						<option value="2">N-Term</option>
						<option value="3">C-Term</option>
						<option value="4">4类型氨基酸</option>
						<option value="5">5类型氨基酸</option>
						<option value="6">6类型氨基酸</option>
						<option value="7">7类型氨基酸</option>
						<option value="8">8类型氨基酸</option>
					</select>
				</td>
				<td>Term值</td>
				<td>
					<input type="text" name="term_value">
				</td>
				<td>成环可行性</td>
				<td>
					<select name="cyclo_enable" id="cyclo_enable">
						<option value="0">不可成环</option>
						<option value="-1">酸性</option>
						<option value="1">碱性</option>
						<option value="2">二硫键</option>
					</select>
				</td>
			</tr>
			<tr>
				<td colspan="6" class="text-right">
					<button type="reset" class="btn btn-default"> 重置 </button>
					<button type="submit" class="btn btn-primary"> 增加 </button>
				</td>
			</tr>
		</table>
		</form>
		
		<script src="__PUBLIC__/static/asset/jquery/2.2.4/jquery.js"></script>
		<script>
            function check(){
            	var single = $('#single').val();
				if(!single || single.length==0){
					alert('请输入单字母');
					return false;
				}
            	return true;
            }
		</script>
	</body>
</html>
